<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>

</body>

</html>
<script>
    var result = {
        phone: '17671064410',
        itemsId: 100100,
        like: false
    }
    var result1 = {
        phone: '17671064410',
        itemsId: 100100,
    }

    // if (like) {
    //     console.log(1);
    // } else {
    //     console.log(2);
    // }
    console.log(result.hasOwnProperty('like'));
    console.log(result1.hasOwnProperty('like'));
</script>